
#KERNELDIR :=/lib/modules/$(shell uname -r)/build
#/home/linux/test/linux-3.14
#KERNELDIR :=/home/fengjunhui/kernel/linux-3.14
KERNELDIR :=/home/linux/test/linux-3.14
PWD  :=$(shell pwd)

CROSS_COMPILE=arm-linux-
#CROSS_COMPILE=
CC=$(CROSS_COMPILE)gcc

obj-m +=demo.o 

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean


